package com.matt.foundation.vo.observation;

import com.matt.domain.observation.ObservationOption;
import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/8/14
 * *******************************
 */
@Data
public class ObservationOptionVo {
    private Long id;
    private String title;
    private Integer score;


    public static ObservationOptionVo of(ObservationOption option){
        ObservationOptionVo vo = new ObservationOptionVo();
        vo.setId(option.getId());
        vo.setScore(option.getScore());
        vo.setTitle(option.getTitle());
        return vo;
    }
}
